<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="../js/jquery-3.6.3.min.js"></script>
		<script>
			$(function(){
				let d=$("#d1");
				d.css("border","4px solid red");
				d.find("a").attr("href","https://www.taobao.com");
			});
		</script>
	</head>
	<body>
		<div id="d1">
			<h1>你好</h1>
			<p>西游记第二回</p>
			<p>
				<a href="#">淘宝</a>
				<a href="#">oschina</a>
				<a href="#">cnblogs</a>
			</p>
		</div>
		<a href="#">jd</a>
	</body>
</html>